#include <iostream>
#include <vector>
using namespace std;
bool searchVal(vector<int>::iterator beg,vector<int>::iterator end,int n)
{
	for(beg;beg!=end;beg++){
		if(*beg==n){
			return 1;
		}
	}
return 0;
}
int main(int argc, char** argv) {
	vector<int> vt ={1,3,5,7,9,10};
	cout<<searchVal(vt.begin(),vt.end(),10)<<endl;
	return 0;
}
